using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Items;
using Server.Engines.Harvest;
using Server.ContextMenus;

namespace Server.Items
{
	public abstract class BasePoleArm : BaseWeapon
	{
		public override int DefHitSound { get { return 0x237; } }
		public override int DefMissSound { get { return 0x238; } }

		public override SkillName DefSkill { get { return SkillName.Sword; } }
		public override WeaponType DefType { get { return WeaponType.Polearm; } }
		public override WeaponAnimation DefAnimation { get { return WeaponAnimation.Slash2H; } }

		public BasePoleArm(int itemID)
			: base(itemID)
		{
		}

		public BasePoleArm(Serial serial)
			: base(serial)
		{
		}

		public override void OnDoubleClick(Mobile from)
		{
			//TODO : couper du bois !
		}

		public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
		{
			base.GetContextMenuEntries(from, list);

			//if ( HarvestSystem != null )
			//	BaseHarvestTool.AddContextMenuEntries( from, this, list, HarvestSystem );
		}

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);
			writer.Write((int)0); // version
		}

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);
			int version = reader.ReadInt();
		}
	}
}